<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>请求json数据</title>
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript">
$(function(){
	var url = 'jsonTest.do'
	$.ajax({
	   type: "POST",
	   dataType:"json",// 注意此处
	   url: url,
	   success: function(msg){
		 console.log( msg );
	   }
	   ,error:function(e){
		console.log(e)
	   }
	});
});
</script>
</head>
<body>

</body>
</html>